/******************************************************************************************
 * Import
 ******************************************************************************************/

// module
import React, {Component} from 'react';
import {View, Text, Button, AsyncStorage} from 'react-native';
import SplashScreen from 'react-native-splash-screen';
import {createStackNavigator} from 'react-navigation';

// project
import {Http, Session, Svg} from '../library';
import {Config, Auth, Icon} from '../preset';
import HttpTemp from '../preset/func/http/httptemp';

/******************************************************************************************
 * Screen
 ******************************************************************************************/

//-----------------------------------------  logic

// auth
import AuthLogin from './auth/login';
import AuthRetrieve from './auth/retrieve';

// business

// common
import CommonArticle from './common/article';
import CommonLocation from './common/location';
// import CommonScan from './common/scan';

// service
import Service from './service/home';
import ServiceGateway from './service/gateway';
import ServiceVisitor from './service/visitor';

// smart
import Smart from './smart/home';

// home
import Home from './home';

//-----------------------------------------  User

// user
import User from './user/home';

// asset
import UserAssetCash from './user/asset/cash';
import UserAssetPacket from './user/asset/packet';

// help
import UserHelp from './user/help';
import UserHelpChat from './user/help/chat';
import UserHelpFeedback from './user/help/feedback';
import UserHelpHelp from './user/help/help';

// list
import UserListActivity from './user/list/activity';
import UserListBill from './user/list/bill';
import UserListCollect from './user/list/collect';
import UserListMessage from './user/list/message';
import UserListOrder from './user/list/order';

// setting
import UserSettingAddress from './user/setting/address';
import UserSettingAddressAdd from './user/setting/address/add';
// --
import UserSettingCar from './user/setting/car';
import UserSettingCarAdd from './user/setting/car/add';
import UserSettingCarDetail from './user/setting/car/detail';
// --
import UserSettingConfirm from './user/setting/confirm';
import UserSettingConfirmBasic from './user/setting/confirm/basic';
import UserSettingConfirmNation from './user/setting/confirm/nation';
// --
import UserSettingHouse from './user/setting/house';
import UserSettingHouseConfirm from './user/setting/house/confirm';
import UserSettingHouseFloor from './user/setting/house/floor';
import UserSettingHouseRoom from './user/setting/house/room';

// system
import UserSystem from './user/system';

/******************************************************************************************
 * Export
 ******************************************************************************************/

export default createStackNavigator(
	{
		//-----------------------------------------  logic
		// auth
		AuthLogin,
		AuthRetrieve,
		// common
		CommonArticle,
		CommonLocation,
		// CommonScan,
		// service
		Service,
		ServiceGateway,
		ServiceVisitor,
		// smart
		Smart,
		// home
		Home,
		//-----------------------------------------  User
		// user
		User,
		// asset
		UserAssetCash,
		UserAssetPacket,
		// help
		UserHelp,
		UserHelpChat,
		UserHelpFeedback,
		UserHelpHelp,
		// list
		UserListActivity,
		UserListBill,
		UserListCollect,
		UserListMessage,
		UserListOrder,
		// setting
		UserSettingAddress,
		UserSettingAddressAdd,
		// --
		UserSettingCar,
		UserSettingCarAdd,
		UserSettingCarDetail,
		// --
		UserSettingConfirm,
		UserSettingConfirmBasic,
		UserSettingConfirmNation,
		// --
		UserSettingHouse,
		UserSettingHouseConfirm,
		UserSettingHouseFloor,
		UserSettingHouseRoom,
		// system
		UserSystem
	},
	{
		initialRouteName: 'Home',
		headerMode: 'none'
	}
);
// //-----------------------------------------  logic
// 		// auth
// 		AuthLogin,
// 		AuthRetrieve,
// 		// common
// 		CommonArticle,
// 		CommonLocation,
// 		// CommonScan,
// 		// service
// 		Service,
// 		ServiceGateway,
// 		ServiceVisitor,
// 		// smart
// 		Smart,
// 		// home
// 		Home,
// 		//-----------------------------------------  User
// 		// user
// 		User,
// 		// asset
// 		UserAssetCash,
// 		UserAssetPacket,
// 		// help
// 		UserHelp,
// 		UserHelpChat,
// 		UserHelpFeedback,
// 		UserHelpHelp,
// 		// list
// 		UserListActivity,
// 		UserListBill,
// 		UserListCollect,
// 		UserListMessage,
// 		UserListOrder,
// 		// setting
// 		UserSettingAddress,
// 		UserSettingAddressAdd,
// 		// --
// 		UserSettingCar,
// 		UserSettingCarAdd,
// 		UserSettingCarDetail,
// 		// --
// 		UserSettingConfirm,
// 		UserSettingConfirmBasic,
// 		UserSettingConfirmNation,
// 		// --
// 		UserSettingHouse,
// 		UserSettingHouseConfirm,
// 		UserSettingHouseFloor,
// 		UserSettingHouseRoom,
// 		// system
// 		UserSystem




// //-----------------------------------------  logic

// // auth
// import AuthLogin from './auth/login';
// import AuthRetrieve from './auth/retrieve';

// // business

// // common
// import CommonArticle from './common/article';
// import CommonLocation from './common/location';
// // import CommonScan from './common/scan';

// // service
// import Service from './service';
// import ServiceGateway from './service/gateway';
// import ServiceVisitor from './service/visitor';

// // smart
// import Smart from './smart';

// // home
// import Home from './home';

// //-----------------------------------------  User

// // user
// import User from './user';

// // asset
// import UserAssetCash from './user/asset/cash';
// import UserAssetPacket from './user/asset/packet';

// // help
// import UserHelp from './user/help';
// import UserHelpChat from './user/help/chat';
// import UserHelpFeedback from './user/help/feedback';
// import UserHelpHelp from './user/help/help';

// // list
// import UserListActivity from './user/list/activity';
// import UserListBill from './user/list/bill';
// import UserListCollect from './user/list/collect';
// import UserListMessage from './user/list/message';
// import UserListOrder from './user/list/order';

// // setting
// import UserSettingAddress from './user/setting/address';
// import UserSettingAddressAdd from './user/setting/address/add';
// // --
// import UserSettingCar from './user/setting/car';
// import UserSettingCarAdd from './user/setting/car/add';
// import UserSettingCarDetail from './user/setting/car/detail';
// // --
// import UserSettingConfirm from './user/setting/confirm';
// import UserSettingConfirmBasic from './user/setting/confirm/basic';
// import UserSettingConfirmNation from './user/setting/confirm/nation';
// // --
// import UserSettingHouse from './user/setting/house';
// import UserSettingHouseConfirm from './user/setting/house/confirm';
// import UserSettingHouseFloor from './user/setting/house/floor';
// import UserSettingHouseRoom from './user/setting/house/room';

// // system
// import UserSystem from './user/system';